package cn.itsource.org.domain;

import cn.itsource.basic.domain.BaseDomain;
import cn.itsource.basic.domain.CreatePassword;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import javax.persistence.Transient;

@Data //生成get set方法
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_employee")
public class Employee extends BaseDomain implements CreatePassword {

    //用户名
    private String username;
    private String email;
    private String phone;

    //盐值
    private String salt;
    //密码
    private String password;

    //临时字段 不参与数据库的crud
    @Transient
    private String comfirmPassword;
    private Integer age;
    private Integer state;
    private Long departmentId;
    private Long logininfoId;
    private Long shopId;
    private Long parentId;
    private Long managerId;

    private String headImg;
}
